package cn.iocoder.yudao.module.tms.controller.admin.training.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.springframework.web.multipart.MultipartFile;

import jakarta.validation.constraints.NotNull;

@Schema(description = "管理后台 - 培训资料上传 Request VO")
@Data
public class TrainingMaterialUploadReqVO {

    @Schema(description = "文件附件", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "文件附件不能为空")
    private MultipartFile file;

    @Schema(description = "资料名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "培训资料")
    @NotNull(message = "资料名称不能为空")
    private String name;

    @Schema(description = "备注", example = "这是培训资料")
    private String remark;

}